const state = {
  token: '',
};

const mutations = {
  setToken: (state, data) => {
    state.token = data;
  },
  clearToken: (state) => {
    state.token = '';
  },
};

export default {
  namespaced: true,
  state,
  mutations,
};
